home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 2 / AACD 2.iso / AACD / Programming / fpc / units.txt < prev   
Text File  |  1998-09-23  |  2KB  |  58 lines

  1.  
  2.  
  3.     Amiga units for fpc.
  4.  
  5.     There should not be any problems to use
  6.     this units in Amiga or in linux.
  7.  
  8.     For the ms-dos cross-compiler you have to
  9.     do some changes.
  10.  
  11.     First you have to rename the units to 8.3
  12.     e.g intuition.pas to intuitio.pas
  13.     No need to change in the units the compiler
  14.     will find the units anyway.
  15.  
  16.     There are a few you will have problems with,
  17.     expansion.pas and expansionbase.pas. What
  18.     you can do is to rename them to expan.pas
  19.     and expanbas.pas. If a unit uses the old
  20.     name the compiler will complain so just
  21.     fix that unit when the problems pops up.
  22.  
  23.     The same problem with configregs.pas and
  24.     configvars.pas, perhaps do cfgvars.pas and
  25.     cfgregs.pas
  26.  
  27.     If you find any bugs or errors in the units
  28.     please inform me. Address bellow.
  29.  
  30.     If you want do translate other libraries to
  31.     fpc use Fd2Pragma, it's on Aminet. Read the
  32.     docs for Fd2Pragma on how to make units
  33.     for fpc. Fd2Pragma translates almost everything
  34.     correct for fpc. There is one thing you have to
  35.     do to the new unit, make a search/replace for
  36.     Cardinal/ULONG. Fpc for Amiga don't handle
  37.     Cardinals in this version (later), so we have
  38.     to use ULONG instead. ULONG is typedefed as
  39.     Longint (in Exec) in a new version of fpc
  40.     we just have to typedef ULONG as Cardinal.
  41.     What's left is for you to translate structs
  42.     and defines.:)
  43.  
  44.     There are also two rexx scripts that can be
  45.     handy, getrecord.rexx and make.rexx. You can
  46.     use getrecord.rexx to check that you have
  47.     translated the structs correct. Read more
  48.     in the scripts headers.
  49.  
  50.  
  51.     Other than that just have fun!
  52.  
  53.  
  54.     nils.sjoholm@mailbox.swipnet.se
  55.  
  56.  
  57.  
  58.